package cn.wolfcode.service;

import cn.wolfcode.domain.Employee;
import cn.wolfcode.qo.QueryObject;
import com.github.pagehelper.PageInfo;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.ServletOutputStream;
import java.io.IOException;
import java.util.List;

public interface IEmployeeService {
    void deleteByPrimaryKey(Long id);

    void insert(Employee record);

    Employee selectByPrimaryKey(Long id);

    List<Employee> selectAll();

    void updateByPrimaryKey(Employee record);
//分页查询
    PageInfo<Employee> que2(QueryObject qo);

    void insertByRoleId(Long id, Long ids);

    Employee selectOne(String username,String password);

    void deleteByRoleId(Long id);

    void exprotXls(ServletOutputStream outputStream) throws IOException;

    void importXls(MultipartFile file) throws IOException;

    Employee getEmployeeName(Long id);
}
